<template>
  <div>
    <div>
      <el-button type="primary" @click="plus">点击次数{{ num }}</el-button>
    </div>

    <router-link to="/lifeCircle01">lifeCircle01</router-link>
    <router-link to="/lifeCircle02">lifeCircle02</router-link>
    <div style="height: 500px; background-color: pink">
      <router-view />
    </div>
  </div>
</template>

<script>
export default {
  name: "LifeCircle",
  data() {
    return {
      num: 1,
    };
  },
  methods: {
    plus() {
      this.num++;
    },
  },
};
</script>

<style scoped></style>
